package com.android.plc.classholder;

public class Unit extends Device
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -7256493453243930637L;
	private boolean isOn = false;

	public Unit(Device device)
	{
		super(device.type);
		this.name = device.name;
		this.device_type = device.device_type;
		this.sub_type = device.sub_type;
		this.code = device.code;
		this.room = device.room;
	}

	public Unit(Type type)
	{
		super(type);
	}

	public Unit(String name, int type, int subtype, int code, int room)
	{
		super(name, type, subtype, code, room);
	}

	public void setOn(boolean isOn)
	{
		this.isOn = isOn;
	}

	public boolean isOn()
	{
		return isOn;
	}
}
